package com.sxkiler.demo.netty;

import com.sxkiler.demo.netty.protocol.ProtoclType;
import com.sxkiler.demo.netty.protocol.ProxyFactory;
import com.sxkiler.demo.netty.register.RegisterType;
import com.sxkiler.demo.netty.service.IHelloService;

public class Consumer {
    public static void main(String[] args) {
        IHelloService helloService = ProxyFactory.getProxy(ProtoclType.HTTP, RegisterType.ZOOKEEPER,IHelloService.class);
        String result = helloService.sayHello("liuy");
        System.out.println(result);
    }
}
